home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16281 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  4.4 KB

  1. Path: news.zocalo.net!news
  2. From: Paul Hsieh <qed@xenon.chromatic.com>
  3. Newsgroups: comp.lang.c,comp.lang.c++,rec.games.programmer
  4. Subject: Re: ! Read me and State your opinion.
  5. Date: Wed, 10 Apr 1996 00:10:45 -0700
  6. Organization: Zocalo Engineering - Berkeley, California, USA
  7. Message-ID: <316B5EF5.4ECD@xenon.chromatic.com>
  8. References: <4kegoq$f2d$1@mhadg.production.compuserve.com>
  9. NNTP-Posting-Host: paulh.chromatic.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win95; I)
  14.  
  15. Andrew T. Finnell wrote:
  16. >         Hello all fellow C/C++ programmers.
  17. >         I'd like your opinion on a subject. I recently had a
  18. > argument with one of my friends and he says that C sucks and
  19. > people shouldn't be programming in it [...] But my friend says 
  20. > it's to hard to learn and doesn't serve the purpose it's 
  21. > supposed too. 
  22.  
  23. I wouldn't put too much stock in your friend's opinion about how
  24. good C is, given that he says is a hassle to learn.  C is about
  25. as straightforward a language as I can think of.
  26.  
  27. > [...] As in the transportable code. 
  28.  
  29. You mean portable.  ANSI C is about as portable as it gets.  In
  30. truth, portability has more to do with the design of your programs
  31. than the language it was written in.  Most 16 bit PC C compilers
  32. are not really ANSI C.  Things like "far", "loadds", memory models
  33. and so on have nothing to do with ANSI C, and have just been 
  34. implemented for the sake of convenience and performance (but are
  35. outside the realm of ANSI C.)  This is where the main exception to
  36. C's portability is.
  37.  
  38. > [...] He says there's not 
  39. > enough standard librarys as in Text output and graphics. I told 
  40. > him that that's why it is called a low-level language. Because 
  41. > the programmer has to make most of the libraries
  42. > himself.
  43.  
  44. Your friend is a complete fool.  He probably think's Borland Pascal's
  45. graphics library is a great standard with its awesome Pie Charts and
  46. bar Graphs.  There are few graphics libraries that can call them-
  47. selves any sort of standard and OpenGL is one of them.  Guess which
  48. language OpenGL has been implemented in.
  49.  
  50. >         I think that C/C++ won't be replace but "upgraded".
  51.  
  52. Why would it be upgraded?  I'm having a hard enough time being 
  53. convinced that its worth it to migrate to C++ let alone something
  54. beyond it.  C (and thus C++) is a very sturdy language with few
  55. limitations.
  56.  
  57. > [...] I don't know how I can explain to him that C is the language 
  58. > to make programs. 
  59.  
  60. Tell him that that's where all the graphics libraries are.  If he
  61. can't be convinced to leave Borland Pascal's laughable graphics
  62. support behind (or Basic or whatever nonsense he is using) then
  63. he's a lost cause.  There are a hell of a lot *more* resources out
  64. there (in terms of libraries and sample code) for C/C++ than any
  65. other language.  This reason alone is enough to migrate to C/C++.
  66.  
  67. Many demo coders out there have been happily coding Pascal and ASM
  68. combinations for years and may object to what I've just said.
  69. However, speaking as one who's compared the two options, I can only
  70. tell you that C is far more flexible.
  71.  
  72. > [...] Also my friends brother is the main reason I wrote this.
  73. > He doesn't want to learn C because he thinks it will be replaced
  74. > and he'll just have to learn a new language.
  75.  
  76. Well, even if it is, it will probably have all the capabilities of
  77. C.  Just in the same sense that C has all (or nearly all; there are
  78. different scoping rules as I recall) the capabilities of Pascal.
  79. Certainly knowledge of Pascal is helpful in learning C.  That new
  80. language that your friend's brother is worried will take over?  Let
  81. me tell you, it doesn't currently exist.  The time spent learning
  82. C will reward itself, because either it will be the language of
  83. choice for some time to come (my personal belief) or the knowledge
  84. gained will be useful for learning its replacement.
  85.  
  86. >         Now I think C is awesome and most versitle. I love
  87. > interrupt changing :-) which I don't think you can do in any other
  88. > language except of course Assembly :-) but that doesn't count.
  89.  
  90. What the hell does that have to do with C?  You can redefine an 
  91. interrupt vector in Borland Pascal as well I believe.  And what do
  92. you mean assembly doesn't count?  I value knowledge of assembly
  93. language almost as much as I do C, and certainly more so than any
  94. other language I know.
  95.  
  96. -- 
  97. Paul Hsieh
  98. qed@xenon.chromatic.com
  99. Graphics Programmer
  100. Chromatic Research
  101.  
  102. What I say and what my company says are not always the same thing
  103.